#include "kmp.h"
#include <stdio.h>
#include <string.h>

const char *str_in_str(const char *str, const char *sub);

int main() {
  const char *str = "abababcabababaabababcabababaabababcabababaabababcabababaab"
                    "ababcabababaabababcabababaabababcabababaabababcabababaabab"
                    "abcabababaabababcabababaabababcabababaabababcabababad "
                    "abababcabababaabababcabababa";

  const char *sub = "abababcabababad";

  printf("%s\n", KMP(str, sub));

  return 0;
}